import React, { useEffect } from 'react'

export default function Child() {
  useEffect(() => {
    console.log('执行')
    let timer = setTimeout(function () {})
    return () => {
      console.log('解绑')
      clearTimeout(timer)
    }
  })
  return <div>Child</div>
}
